<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html" xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/template.xhtml">
        <ui:define name="content">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <p:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewQuestoesLabel_idQuestoes}"/>
                    <h:outputText value="#{questoesController.selected.idQuestoes}" title="#{bundle.ViewQuestoesTitle_idQuestoes}"/>
                    <h:outputText value="#{bundle.ViewQuestoesLabel_questao}"/>
                    <h:outputText value="#{questoesController.selected.questao}" title="#{bundle.ViewQuestoesTitle_questao}"/>
                    <h:outputText value="#{bundle.ViewQuestoesLabel_idRecurso}"/>
                    <h:outputText value="#{questoesController.selected.idRecurso}" title="#{bundle.ViewQuestoesTitle_idRecurso}"/>
                </p:panelGrid>
                <br />
                <p:commandButton ajax="false" process="@this"  action="#{questoesController.destroyAndView}" value="#{bundle.ViewQuestoesDestroyLink}"/>
                <br />
                <br />
                <h:link outcome="Edit" value="#{bundle.ViewQuestoesEditLink}"/>
                <br />
                <p:commandButton ajax="false" process="@this"  action="#{questoesController.prepareCreate}" value="#{bundle.ViewQuestoesCreateLink}" />
                <br />
                <p:commandButton ajax="false" process="@this"  action="#{questoesController.prepareList}" value="#{bundle.ViewQuestoesShowAllLink}"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.ViewQuestoesIndexLink}"/>

            </h:form>
        </ui:define>
    </ui:composition>

</html>
